<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#findIDBtn").click(function(){
			var name=$("#name").val();
			var email=$("#email").val();
			if(name==""){
				alert("이름을 입력하세요");
				$("#name").focus();
			}else if(email==""){
				alert("이메일을 입력하세요");
				$("#email").focus();
			}else{
				$("#findIdByNameEmailForm").submit();
			}
		});
	});
</script>
</head>
<body>
<center>
<h2>아이디 찾기</h2>
<form action="findIdByNameEmail.do" method="post" id="findIdByNameEmailForm">
<table style="border-width: 0.5mm;" bordercolor="#368AFF" width="300" height="150">
<tr>
<td align="center">
<table>
<tr>
	<td id="tdName"><font size="2">이름</font></td>
	<td>
	<input type="text" id="name" name="name">
	</td>
</tr>
<tr>
	<td id="tdEmail"><font size="2">이메일</font></td>
	<td>
	<input type="text" id="email" name="email">
	</td>
</tr>
</table>
<input type="button" value="확인" id="findIDBtn">
<a href="main.do"><input type="button" value="취소"></a>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>